|
ActiveX Document (also known as DocObject or DocObj)〔(Definition of ActiveX Documents )〕 is a Microsoft technology that allows users to view and edit Microsoft Word, Excel, and PDF documents inside web browsers.〔Microsoft readies DocObject; technology will allow document editing in Web browsers, InfoWorld Apr 29, 1996, page 49 http://www.accessmylibrary.com/article-1G1-18241137/microsoft-readies-docobject-technology.html〕 It defines a set of Component Object Model coding contracts between hosting programs like Internet Explorer or Microsoft Office Binder 〔 and hosted documents from programs like Microsoft Word, Microsoft Excel or Adobe Reader. This allows them to negotiate communications about commands like save and navigate, as well as merging user interface elements such as menu,〔Menus in Active Documents, Visual FoxPro 7.0 documentation, by Microsoft https://msdn.microsoft.com/en-us/library/aa903362(v=VS.71).aspx〕 to provide an unified user experience. Initially designed for Compound documents based on COM Structured Storage, the technology allows one single hosting programs like Office Binder to contain unlimited type of documents.〔Microsoft promises compound documents. (Win95 Suites Set to Clash) by Greenberg, Ilan, InfoWorld June 05, 1995 http://www.accessmylibrary.com/article-1G1-17053478/microsoft-promises-compound-documents.html〕 The server program that provides an ActiveX document can be an EXE or a DLL server. ==Code contracts== There are a few code contracts that ActiveX documents and their container need to implement in order to communicate about their capabilities and requirements. An ActiveX document server application needs to implement the following code contracts that are expected by an ActiveX document container that is going to host the document:〔The Visual Programmer Puts ActiveX Document Objects Through Their Paces, by Joshua Trupin, Microsoft Systems Journal, June 1996, http://www.microsoft.com/msj/archive/S37B.aspx〕 *IPersistStorage, if use compound files as the storage *Standard OLE interfaces like IPersistFile, IOleObject, and IDataObject, for creating a document that supports object linking and embedding from file *IOleInPlaceObject and IOleInPlaceActiveObject, for editing inline *IOleDocument, IOleCommandTarget, and IPrint, for talking to document container, command routing, and printing An ActiveX document container application needs to implement the following code contracts〔Active Document Containers, Visual Studio 2012 documentation, by Microsoft, https://msdn.microsoft.com/en-us/library/644x1yy6.aspx〕 *Provide storage for documents via IStorage *Implement IOleClientSite and IAdviseSink, for standard object linking and embedding *Implement IOleInPlaceSite and IOleInPlaceFrame, for editing inline *Implement IOleDocumentSite, IOleCommandTarget, IPrint and IContinueCallback, for document hosting, command routing and printing 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「ActiveX Document」の詳細全文を読む スポンサード リンク
|